<script type="text/javascript">
    function changePassPopup() {
        window.open("changePass.php", "Đổi Mật Khẩu", 
        "status = 1, height = 250, width = 340, resizable = 0")
    }
            
</script>
<!-- Header -->
<div id="header">
    <div class="shell">
        <!-- Logo + Top Nav -->
        <div id="top">
            <h1 style="color:orange !important">Gia An</h1>
            <div id="top-navigation">
                Xin chào <strong><?php echo $_SESSION["username"][1]; ?></strong>
                <span>|</span>
                <a href="" onclick="changePassPopup();">Đổi Mật Khẩu</a>
                <span>|</span>
                <a href="../action/logoutAction.php">Thoát</a>
            </div>
        </div>
        <!-- End Logo + Top Nav -->

        <!-- Main Nav -->
        <div id="navigation">
            <ul>
            	<?php
                	$url = basename($_SERVER['PHP_SELF']);
					$class = " class=\"active\"";
					
					$index = "";
					$banner = "";
					$service = "";
					$serviceDetail = "";
					$user = "";
					$userDetail = "";
					$receipt = "";
					$receiptDetail = "";
					$category = "";
					$categoryDetail = "";
					$product = "";
					$productDetail = "";
					$event = "";
					$eventDetail = "";
					
					switch($url){
						case "index.php": $index = "1"; break;
						case "banner.php": $banner = "1"; break;
						case "service.php": $service = "1"; break;
						case "service-detail.php": $serviceDetail = "1"; break;
						case "user.php": $user = "1"; break;
						case "user-detail.php": $userDetail = "1"; break;
						case "receipt.php": $receipt = "1"; break;
						case "receipt-detail.php": $receiptDetail = "1"; break;
						case "category.php": $category = "1"; break;
						case "category-detail.php": $categoryDetail = "1"; break;
						case "product.php": $product = "1"; break;
						case "product-detail.php": $productDetail = "1"; break;
						case "event.php": $event = "1"; break;
						case "event-detail.php": $eventDetail = "1"; break;
					}
				?>
                <li><a href="index.php" <?php if($index!="")echo $class;?>><span>Bảng Điều Khiển</span></a></li>
                <li><a href="receipt.php" <?php if($receipt!=""||$receiptDetail!="")echo $class;?>><span>Hóa Đơn</span></a></li>
                <li><a href="service.php" <?php if($service!=""||$serviceDetail!="")echo $class;?>><span>Dịch Vụ</span></a></li>
                <li><a href="banner.php" <?php if($banner!="")echo $class;?>><span>Banner</span></a></li>
                <li><a href="user.php" <?php if($user!=""||$userDetail!="")echo $class;?>><span>Tài khoản người dùng</span></a></li>
                <li><a href="category.php" <?php if($category!=""||$categoryDetail!="")echo $class;?>><span>Loại Sản Phẩm</span></a></li>
                <li><a href="product.php" <?php if($product!=""||$productDetail!="")echo $class;?>><span>Sản Phẩm</span></a></li>
                <li><a href="event.php" <?php if($event!=""||$eventDetail!="")echo $class;?>><span>Sự Kiện</span></a></li>
            </ul>
        </div>
        <!-- End Main Nav -->
    </div>
</div>
<!-- End Header -->